home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_300 / 352_01 / lcbelow.cpp < prev    next >
C/C++ Source or Header  |  1991-04-22  |  395b  |  17 lines

  1. // LCBELOW.CPP -
  2. //         contains LinkClass::insertBelow()
  3. //        routine for inserting a new node below the 'this' node.        
  4. #include <stdlib.h>
  5. #include <alloc.h>
  6. #include <iostream.h>
  7. #include "wtwg.h"
  8.  
  9. #include "dblib.h"
  10.     void LinkClass::insertBelow ( LinkClass &existing )
  11.     {
  12.     pv = existing.pv;
  13.     nx = &existing;
  14.     pv->nx = this;
  15.     nx->pv = this; 
  16.     };    // end LinkClass::insertBelow()
  17.